<?php
include($folder.'/layouts/code-behind/backend.php');
if ($_GET['id'] !== null && $_GET['id'] !== '')
{
	$_POST['main'] = queryOneRow('SELECT id,content,title,description,textcategory_id FROM text WHERE id=:id',
		array('id'=>(int)$_GET['id']));
}
$_POST['textCategories']['dataSource'] =
	query('SELECT description AS `value`,id AS `key` FROM textcategory', null);
$master['action'] = 'text_update';
$master['attributes'] = null;
$master['pageTitle'] = 'Írás tartalmának módosítása';
?>